/*
* Copyright (c)  2017, ueboot.com
* All rights reserved.
* 2017-11-02 17:23:47
*/
package com.ueboot.weishop.repository.finance;

import com.ueboot.weishop.entity.finance.SettlementBatch;
import com.ueboot.core.repository.BaseRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by yangkui  on 2017-11-02 17:23:47.
 *
 * @author yangkui
 * @since 2.0 by autocode
 */
@Repository
public interface SettlementBatchRepository extends BaseRepository<SettlementBatch, Long> {

    SettlementBatch findTopByOrderBySettleDateDesc();

    List<SettlementBatch> findByStatusOrderByFirstInsertDesc(String status);

    SettlementBatch findTopByBatchNoOrderByFirstInsertDesc(String batchNo);
}
